//
//  BoxCostHeadView.m
//  XLDoctor
//
//  Created by longma on 2018/10/8.
//  Copyright © 2018年 XLH. All rights reserved.
//

#import "GradientRampItemView.h"

@implementation GradientRampItemView

- (void)awakeFromNib{
    [super  awakeFromNib];
    
    self.labTitle.adjustsFontSizeToFitWidth = true;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    
    //获得准确frame 保证已经形成frame 的情况下
    [self.viewLine.superview layoutIfNeeded];
    if(self.leftCornerRadius){
        [self.viewLine mj_cornerWithType:MJCornerRadiusTypeLeft cornerRadius:self.viewLine.mj_height/2];
    }
    if(self.rightCornerRadius){
        [self.viewLine mj_cornerWithType:MJCornerRadiusTypeRight cornerRadius:self.viewLine.mj_height/2];
    }
    
}



@end
